//
//  XmlParserCategoryList.h
//  FleaFinder
//
//  Created by Hieu Le on 4/8/13.
//  Copyright (c) 2013 Kiwiweb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Category.h"

typedef enum {
    CATEGORY_TAG_ID = 0,
    CATEGORY_TAG_TITLE = 1,
} CategoryTag;

@interface XmlParserCategoryList : NSObject <NSXMLParserDelegate>
{
    NSString *tagCategoryList;
    NSString *tagCategory;
    NSString *tagId;
    NSString *tagTitle;
    
    NSMutableArray *parsedObjects;
    Category *currentCategory;
    
    BOOL isInsideTagCategory;
    int currentTag;
    BOOL addedVisAlle;
}

-(void) parseXML: (NSString*) sourceUrl;

-(NSMutableArray*) getParsedObjects;

@end
